$(function() {
	$('#vue_vm_list div').hide();
});

var volunteerOrder = {
	volunteerOrderId: '',
	volunteerName: '',
	contactName: '',
	contactPhoneNumber: '',
	subjectRoomId: getLoginedUser().subjectRoomId,
	subjectRoomName: getLoginedUser().subjectRoomName,
	startTime: '',
	endTime: '',
	activityContent: '',
	doStatus: '',
	createTime: '',
	updateTime: '',
	createId: getLoginedUser()? getLoginedUser().staffId: '',
	updateId: getLoginedUser()? getLoginedUser().staffId: '',
};

function volunteerOrder_query() {
	if($('#vue_vm_list').length==0) {return;}
	$('#vue_vm_list div').hide();
	var yearMonth = $('#year').val() + '-' + $('#month').val();
	
	find_basic_by_json(path+'/volunteerOrder/findByMonth', {month:yearMonth}, function(response) {
		$('#vue_vm_list').html(gl_vue_vm_list_html);
		
		new Vue({
			el: '#vue_vm_list',
			data: {
				todos: response.data
			}
		});
		
		$('#vue_vm_list div').show();
	});
}

function deleteBatch() {
	deleteBatch_basic(path+'/volunteerOrder/deleteBatch');
}
